<template>
	<view class="cs-search-ul">
		<view class="cs-search-li" v-for="(item,index) in search_list" :key='index' @click='on_showUser(item.user_id,index)'>
			<text class="iconfont iconsousuo icon_search"></text>
			<text>{{item.nicheng}}</text>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			search_list: Array
		},
		methods: {
			on_showUser(user_id, index) {
				this.$emit('on_showUser', index)
			}
		}
	}
</script>

<style lang="scss" scoped>
	.cs-search-ul{
		margin: 144upx 30upx 30upx 30upx;
	}
	.cs-search-li{
		padding: 20upx 0;
		color: #333333;
		border-bottom: 1px solid #E5E5E5;
	}
	// 搜索图标
	.icon_search{
		margin-right: 10upx;
		color: #999999;
	}
</style>
